<template>
    <div>
        <a-button @click="testMock">asd</a-button>
        <router-view></router-view>
    </div>
</template>

<script>
import API from "./api";
const { PostA } = API.testAPI;
export default {
    name: "App",
    methods: {
        testMock() {
            this.$store.commit("increment", 89);
            let data = { code: 123 };
            PostA(data)
                .then(() => {
                    this.$message.success("This is a normal message");
                })
                .catch(() => {
                    this.$message.error("This is a n");
                });
        },
    },

    mounted() {
        console.log(process.env.NODE_ENV);
    },
};
</script>

<style>
</style>